/**
 * JungoMobileWeb
 * ProductDao.java
 * 
 * Copyright 2013 Teachizen
 * Written by cloudstick
 *	2013. 7. 26. first written.
 *
 * note:
 */
package com.jungo.web.dao;

import java.util.List;

import com.jungo.web.bean.Favorite;
import com.jungo.web.bean.Product;

/**
 * @author cloudstick
 *
 */
public interface ProductDao {
	public List<Product> getProducts();
	public List<Product> getProductsByUser(String userid);
	public List<Favorite> getFavoritesByUser(String userid);
	public Product getProduct(int pid);
	public Favorite getFavorite(int fid);
	
	public Integer getProductId();
	public Integer getFavoriteId();
	public void setProduct(Product product);
	public void setFavorite(Favorite favorite);
	
	public List<Product> getProductByCount(String category);
	public Favorite getFavoriteByProduct(Product product);
	
	public void updateProductStatus(Product product);
	public void updateFavoriteStatus(Favorite favorite);
}
